package com.pcbly.web.business.crm;

/**
 * @author carl.song
 * Copyright (c) 2010 Lightsoft, International.
 * All rights reserved.
 *
 */

import com.pcbly.web.bean.crm.BxdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface BxdProductService extends BaseService<BxdProductBean> {

	BxdProductBean getBxdProductBeanById(String id) throws Exception;

	void removeBxdProductBeanById(String id) throws Exception;

	void removeBxdProductBeanByIds(String ids) throws Exception;

	BxdProductBean saveBxdProductBean(BxdProductBean crm) throws Exception;

	BxdProductBean updateBxdProductBean(BxdProductBean crm) throws Exception;

	Page<BxdProductBean> findBxdProductBeanByCond(BxdProductBean bean,
			Page<BxdProductBean> page, String orderByName, boolean asc)
			throws Exception;

	void saveBxdProductBeanExt(String sql) throws Exception;

	String findBxdProductBeanExtCreate(String tableName) throws Exception;

	String findBxdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findBxdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasBxdProductBeanExtData(String tableName, String id)
			throws Exception;
	BxdProductBean getBxdProductBeanByBxdId(String bxdId)throws Exception;
	
	
}